#include "Student_t.h"
#include "ESF_Student_t.h"
#include "ESF_Faculty_t.h"

ESF_Faculty_t::ESF_Faculty_t(const std::string& name)
	: Faculty_t(name)
{
}

ESF_Faculty_t::~ESF_Faculty_t()
{
}

void ESF_Faculty_t::notifyLectureCanceled() const
{
	StudentContainer::const_iterator it = m_students.begin();
	for(; it != m_students.end(); it++)
		(*it)->update("Lecture Canceled");
}

Student_t* ESF_Faculty_t::doMakeStudent() const
{
	return new Student_t(new ESF_Student_t(name()));
}
